﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/Main.Master" AutoEventWireup="true" CodeBehind="ManageJobTitles.aspx.cs" Inherits="HRM.Web.master.ManageJobTitles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="row-fluid">
        <div class="alert alert-info" runat="server" id="divAlertDelete" visible="false">
            <asp:Literal ID="ltrMessageDelete" runat="server"></asp:Literal>
            <button type="button" class="close" data-dismiss="alert">
                &times;
            </button>
        </div>
        <div class="block">
            <div class="head">
                <h2>
                    View All Job Titles</h2>
                <ul class="buttons">
                    <li><a id="AddEdit" href="AddJobTitles.aspx?JobTitleID=0" >
                        <span class="i-plus-2"></span></a></li>
                </ul>
            </div>
            <div class="content np">
                
                <asp:GridView ID="grdJobTitles" runat="server" ClientIDMode="Static" CssClass="tablesorter-bootstrap" DataKeyNames="ID"
                    AutoGenerateColumns="False" onrowcommand="grdJobTitles_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="JobTitle" HeaderText="Job Title" />
                        <asp:BoundField DataField="Description" HeaderText="Description" />
                         
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button ID="btnEdit" runat="server" CausesValidation="false" CommandArgument='<%# Eval("ID")%>'
                                    CommandName="EditCommand" CssClass="btn btn-mini btn-primary edit validate-skip" Text="Edit" />
                                     <asp:Button ID="btnDelete" runat="server" CausesValidation="false" CommandArgument='<%# Eval("ID")%>'
                                    CommandName="DeleteCommand" CssClass="btn btn-mini btn-danger remove validate-skip" Text="Delete" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <div id="pager" class="ts-pager form-horizontal">
                    <button type="button" class="btn first">
                        <i class="icon-step-backward glyphicon glyphicon-step-backward"></i>
                    </button>
                    <button type="button" class="btn prev">
                        <i class="icon-arrow-left glyphicon glyphicon-backward"></i>
                    </button>
                    <span class="pagedisplay"></span>
                    <!-- this can be any element, including an input -->
                    <button type="button" class="btn next">
                        <i class="icon-arrow-right glyphicon glyphicon-forward"></i>
                    </button>
                    <button type="button" class="btn last">
                        <i class="icon-step-forward glyphicon glyphicon-step-forward"></i>
                    </button>
                    <select class="pagesize input-mini" title="Select page size">
                        <option selected="selected" value="10">10</option>
                        <option value="20">20</option>
                        <option value="30">30</option>
                        <option value="40">40</option>
                    </select>
                    <select class="pagenum input-mini" title="Select page number">
                    </select>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
